<%@ include file="/WEB-INF/jsp/include/skin_head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%>
    <div id="pw_bbs" style="width: ${project.specWidth}px;">
        <div id="pw_bbs_hader"></div>
        <div id="pw_bbs_body">
            <div id="pw_bbs_subject">
                <img src="<c:url value="/img/skin/${project.projectSkin}/title.gif"/>" class="pw_bsc" />
                <strong>${project.projectName}</strong> 
            </div>
            <%--div id="pw_bbs_comment">
            <c:if test="${not empty bbsType.bbsComment}">
                ${bbsType.bbsComment}
            </c:if>
            </div--%>
            
		    <div id="pw_bbs_edit">
		        <div id="pw_bbs_edit_header"></div>
		        <div id="pw_bbs_edit_body">
		            <sec:authorize ifNotGranted="ROLE_USER">
		            <div class="row">
		                <label for="userNick"><spring:message code="spec.userNick"/></label> 
		                <span class="pw_padding_w30"><form:input path="userNick" readonly="${ param.command == 'REMOVE' ? true : false}" /></span> <span class=pw_need>*</span>
		                <label for="userNick">
		                	&nbsp;<form:errors path="userNick" cssClass="pw_need" />
		                </label>
		            </div>
		            <div class="row">
		                <label for="userEmail"><spring:message code="bbs.userEmail" /></label> 
		                <span class="pw_padding_w30"><form:input path="userEmail" cssStyle="width:240px" readonly="${ param.command == 'REMOVE' ? true : false}" /></span>
		                <label for="userEmail">
		                	&nbsp;<form:errors path="userEmail" cssClass="pw_need" />
		                </label> 
		            </div>
		            <div class="row">
		                <label for="userHomepage"><spring:message code="bbs.userHomepage" /></label> 
		                <span class="pw_padding_w16"><form:input path="userHomepage" cssStyle="width:240px" readonly="${ param.command == 'REMOVE' ? true : false}" /></span>
		                <label for="userHomepage">
		                	&nbsp;<form:errors path="userHomepage" cssClass="pw_need" />
		                </label>
		            </div>
		            </sec:authorize>
		            <div class="row">
		                <label for="databaseType"><spring:message code="specQuery.databaseType"/></label>
		                <span class="pw_padding_w30">
		                    <form:select path="databaseType">
                                <form:options items="${databaseType}" />
                            </form:select>
		                </span>
		            </div>
		            <div class="row">
		                <label for="libraryType"><spring:message code="specQuery.libraryType"/></label>
		                <span class="pw_padding_w30">
		                    <form:select path="libraryType">
                                <form:options items="${libraryType}" />
                            </form:select>
		                </span>
		            </div>
		        </div>
		        <div id="SAGAEditorBox" style="width: ${(bbsType.bbsWidth - 2)}px; height: 225px; z-index: 0; position: relative;" class="WebEditor_box">
		            ${webEditor}
			        <form:textarea path="query" cols="75" rows="7" cssClass="WebEditor" cssStyle="display: none" readonly="${ param.command == 'REMOVE' ? true : false}" />
			       	<form:errors path="query" cssClass="pw_need" />
		        </div>
		        <div id="pw_bbs_edit_etc">
		            <sec:authorize ifNotGranted="ROLE_USER">
		            <div class="row">
		                <img src="<c:url value="/img/skin/${project.projectSkin}/i_bul.gif"/>" class="pw_bsc" />
		                <label for="userPasswd"><spring:message code="bbs.userPasswd"/></label>
		                <span class="pw_padding_w30">
		                    <form:password path="userPasswd" maxlength="32" /> <span class=pw_need>*</span>
		                </span>
		                <label for="userPasswd">
		                	&nbsp;<form:errors path="userPasswd" cssClass="pw_need" />
		                </label>
		            </div>
		            </sec:authorize>
		            <div class="file">
		                <img src="<c:url value="/img/skin/${project.projectSkin}/i_bul.gif"/>" class="pw_bsc" />
		                <label for="file[0]"><spring:message code="bbs.attachFile"/></label>
		                <span id="pw_uploading"><img src="<c:url value="/img/skin/${project.projectSkin}/loading.gif"/>" class="pw_bsc" /></span>
		                <fieldset id="pw_file_box">
		                    <div id="pw_file_disply_items0"><spring:message code="bbs.attachFileDesc"/></div>
		                </fieldset>
		                <div id="pw_file_box_list">
		                    <div id="pw_file_items"></div>
		                    <span id="pw_file_item0">
		                        <input id="file0" name="file[0]" type="file" size="30" onchange="attach(this, '0');"  readonly="${param.command == 'REMOVE' ? 'readonly' : ''}" />
		                    </span>
		                </div>
		            </div>
		        </div>
		        <div id="pw_btn_action">
		            <a href="<c:url value="/spec/view.do?sid="/>${specQuery.specSid}&amp;currentPage=${param.currentPage}"><spring:message code="specQuery.button.view" /></a> |
		            <a href="#" onclick="editFormSubmit('frmSpec', 'query', 'true');"><spring:message code="specQuery.button.save" /></a> |
		            <img src="<c:url value="/img/skin/${project.projectSkin}/btn_overview.gif"/>" class="pw_pointer" />
		        </div>
		    </div>        
		    <div id="progressBar" style="display: none;">
		        <div id="progressBarText"></div>
		        <div id="progressBarBox">
		           <div id="progressBarBoxContent"></div>
		        </div>
		    </div>
    
        </div>
    </div>      